/***************
 * Organization Activity Panel
 */
AIR2.Organization.Activity = function() {
    return new AIR2.UI.Panel({
        colspan: 2,
        title: 'Recent Activity',
        showTotal: true,
        iconCls: 'air2-icon-activity',
        storeData: AIR2.Organization.ACTDATA,
        url: AIR2.Organization.ORGURL + '/activity',
        itemSelector: '.air2-org-act',
        tpl: new Ext.XTemplate(
            '<table><tpl for=".">' +
              '<tr class="air2-org-act">' +
                '<td>{[AIR2.Format.sourceName(values.Source, true)]}</td>' +
                '<td>{[values.ActivityMaster.actm_name]}</td>' +
                '<td class="date">{[AIR2.Format.date(values.sact_dtim)]}</td>' +
              '</tr>' +
            '</tpl></table>',
            {compiled: true, disableFormats: true}
        )
    });
}